<?php

$arr=[1,2,4,5,7,8];
foreach ($arr as $key => $value) {//输出正常数组
    echo  $value;
    echo "<br>";
}
$arrArr=['name'=>'小明',"age"=>15];//关联数组

echo "<hr>";

foreach ($arrArr as $key => $value) {
    echo  $value;
    echo "<br>";
}

?>